public class Fan {
    private int SLOW = 1;
    private int MEDIUM = 2;
    private int FAST = 3;

    private int speed = SLOW;

    private boolean on = false;
    private double radius = 5;
    private String  color = "blue";

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public boolean isOn() {
        return on;
    }

    public void setOn(boolean on) {
        this.on = on;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Fan is " + on  +
                " 半径为 " + radius +
                " 颜色为 " + color ;
    }
}
